import * as articlesApi from '@/api/hmmm/articles'

const state = {
  // 文章列表
  articlesList: {}
}

const mutations = {
  SET_ARTICLES_LIST (state, newValue) {
    state.articlesList = newValue
  }
}

const actions = {
  async updateBusinessList ({ commit }) {
    const res = await articlesApi.list()
    commit('SET_ARTICLES_LIST', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
